{% include "head.html" %}
  <div id="stage" class="clearfix">
    <div class="content">      
      {% for bookmark in bookmarks %}
      <div id="bookmark{{bookmark.id}}" class="post"> <span class="absolute box_2_t_l"></span> <span class="absolute box_2_t_r"></span> <span class="absolute box_2_b_l"></span> <span class="absolute box_2_b_r"></span>
        <h2><a href="/bookmark/{{bookmark.id}}">{{bookmark.name}}</a></h2>			
        <p class="a">
        <span class="date">{{bookmark.createtime|timezone:8|date:"Y-m-d H:i:s"}}</span> 
        <span class="category">Categorized Under: <a href="/category/{{bookmark.category.id}}">{{bookmark.category.name}}</a></span> 
        <span class="comments"><a href="/bookmark/{{bookmark.id}}#infocomment">{% if bookmark.comments %}{{bookmark.comments}}{% else %} 0 {% endif %} Commented</a></span>
        <span class="tag">Tags: {% for tag in bookmark.tags %}<a href="/tag/s/{{tag}}">{{tag}}</a> {% endfor %}</span>
        </p>
        <div class="details">
            <ul class="star-rating">
				<li id="starsrate" class="current-rating" style="width:{{bookmark.starrate}}%">Currently 5/5 Stars.</li>				
			</ul>
          <a href="{{bookmark.url}}">          
          <img src="/bookmark/image/{{bookmark.id}}"></img></a>          			
          {{bookmark.description}}
          {% if bookmark.zipcontent %}
          <div class="snapshot">          
          <a target="new" href="/bookmark/snapshot/{{bookmark.id}}"><img src="/static/images/snapshot.jpg"></img></a>
          </div>
          {% endif %}
        </div>
      </div>
      {% endfor %}   

      
        <div id="pages">
        	{% if show_prev %}
            <a href="{% if pageurl %}{{pageurl}}{% else %}/{% endif %}page/1">first</a>
            <a href="{% if pageurl %}{{pageurl}}{% else %}/{% endif %}page/{{ prev }}">prev</a>
          {% else %}first prev
          {% endif %}
          {% for page_cnt in page_list %}
            <a href="{% if pageurl %}{{pageurl}}{% else %}/{% endif %}page/{{ page_cnt }}">{{ page_cnt }}</a>
          {% endfor %} ...
          {% if show_next %}
            <a href="{% if pageurl %}{{pageurl}}{% else %}/{% endif %}page/{{ next }}">next</a>
            <a href="{% if pageurl %}{{pageurl}}{% else %}/{% endif %}page/{{max_page}}">last</a>
          {% else %}next last
          {% endif %}
        </div>

      <!-- /post-nav -->
    </div>
    <div class="sidebar">

      <div class="mob"> <span class="absolute box_2_t_l"></span> <span class="absolute box_2_t_r"></span> <span class="absolute box_2_b_l"></span> <span class="absolute box_2_b_r"></span>
        <h2>Categories</h2>
        <ol>
          {% for category in categorys %}<li><a href="/category/{{category.id}}">{{category.name}}({{category.bookmarkcount}})</a></li>{% endfor %}
        </ol>
      </div>
      <div class="mob"> <span class="absolute box_2_t_l"></span> <span class="absolute box_2_t_r"></span> <span class="absolute box_2_b_l"></span> <span class="absolute box_2_b_r"></span>
        <h2>Archives</h2>
        <ul>
          <li><a href="#">January 2009</a></li>
          <li><a href="#">December 2008</a></li>
        </ul>
      </div>
      <div class="mob"> <span class="absolute box_2_t_l"></span> <span class="absolute box_2_t_r"></span> <span class="absolute box_2_b_l"></span> <span class="absolute box_2_b_r"></span>
        <h2>Subscribe</h2>
        <ul>
          <a href="/rss"><img src="/static/images/subscribe.gif"></img>Subscribe via RSS Feed</a>
        </ul>
      </div>      

    </div>
  </div>
</div>
{% include "footer.html" %}
